package com.sofwin.yyb.dao;

import com.sofwin.yyb.dto.AppointmentDto;
import com.sofwin.yyb.entity.Appointment;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface AppointmentDao {

    List<Appointment> selectUListByStatus(Map<String,Object> map);

    List<Appointment> selectMListByStatus(Map<String,Object> map);

    void updateOrderUStatus(Map<String,Object> map);

    void updateOrderMStatus(Map<String, Object> map);

    /**
     * 查询所有预约信息
     * @param map
     * @return
     */
    List<AppointmentDto> selectAllAppointment(Map<String, Object> map);

    /**
     * 查询预约信息数量
     * @param search 模糊查询关键字
     * @return
     */
    Integer selectAppointmentCount(String search);
}
